FROM openjdk:8-jre

WORKDIR /home

COPY DoubleCarbon.jar application.yml /home/
COPY template /home/template

ENV TZ=Asia/Shanghai
ENV JAVA_OPTS="-Xms1024m -Xmx1024m -Djava.security.egd=file:/dev/./urandom"

ENV ARGS=""

CMD java ${JAVA_OPTS} -jar DoubleCarbon.jar $ARGS

EXPOSE 8082
